using System;
using System.Collections;
using System.Text;
using Params;

namespace Doubler
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                ParamCollection p = ParamCollection.ApplicationParameters;
                string AsmPath = (string)p["assembly"].Value;
                string TypeName = (string)p["type"].Value;
                int LineNumber = (int)p["line"].Value;
                string SourceFilePath = (string)p["src"].Value;
                string SolutionFilePath = (string)p["solution"].Value;
                string DoubleFilePath = (string)p["out"].Value;
                string ProjectFilePath = (string)p["project"].Value;
                string DirectoryPath = (string)p["dir"].Value;
                string Language = (string)p["language"].Value;
                DoubleMaker Doubler = new DoubleMaker(AsmPath, TypeName, LineNumber, SourceFilePath, SolutionFilePath, DoubleFilePath, ProjectFilePath, DirectoryPath, Language);
                Doubler.CreateDouble();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
                Console.ReadLine();
            }
        }
    }
}
